<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" 
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">

    <f:view locale="#{localeBean.locale}">
        <h:head>
            <title>
                <ui:insert name="title" />
            </title>
            <link rel="stylesheet" type="text/css" href="../css/style.css" />
        </h:head>
        <h:body>
            <div align="center" style="margin:0px;">

                <h:form id="template">
                    <h:panelGrid columnClasses="columnLateral,columnCentral,columnLateral" width="1270" columns="3">
                        <h:panelGrid>
                            <h:panelGrid styleClass="tabelaAux"/>
                            <h:panelGrid styleClass="tabelaRich800">
                            </h:panelGrid>
                        </h:panelGrid>
                        <h:panelGrid>
                            <h:panelGrid>

                                <div id="imagem_airline">
                                    <img src="../imagens/topo_certo.jpg" alt="topo" width="100" height="20" />
                                </div>
                                <div id="logo">
                                    <img src="../imagens/logo.png" alt="topo" width="100" height="90" />
                                </div>


                                <div id="navigation">
                                    
                                    
                                    <h:form>  
                                        <ul>
                                            <li><h:commandLink action="index" value= "#{msgs['system.index']}" /></li> 
                                            <li><h:commandLink action="reservas" value= "#{msgs['system.reservas']}" /></li>
                                            <li><h:commandLink action="cadastroUsuario" value= "#{msgs['system.cadastro']}"/></li>
                                            <li><h:commandLink action="login" value="#{msgs['system.login']}" /></li>
                                        </ul>
                                    </h:form>
                                    
                                </div>
                                    <h:form>
                                        <div id="linguagens">
                                            <h:selectOneMenu value="#{localeBean.locale}"
                                                             valueChangeListener="#{localeBean.changeLocale}"
                                                             onchange="this.form.submit()">
                                                <f:selectItems value="#{localeBean.localeList}" />
                                            </h:selectOneMenu> 
                                        </div>
                                    
                                    </h:form>
                                


                            </h:panelGrid>

                            <h:panelGrid  width="600" styleClass="body_texto">
                                <ui:insert name="body"/>
                            </h:panelGrid>

                        </h:panelGrid>

                        <h:panelGrid>
                            <h:panelGrid styleClass="tabelaAux"/> 
                        </h:panelGrid>
                    </h:panelGrid>
                </h:form>
            </div>
        </h:body>
        <h:panelGrid styleClass="titulosTabelas" width="1250">
            <h:outputText value="Copyright © AirLine.com.br, 2011"/>
        </h:panelGrid>
    </f:view>            
</html>
